<?php

use yii\db\Migration;

class m171204_065241_alter_customer extends Migration
{
    public function safeUp()
    {
        $this->addColumn('{{%customer}}', 'is_wechat_pay',  $this->smallInteger(2).' default 0 comment \'是可以微信支付（1 是 0 否）\'');
    }

    public function safeDown()
    {
        $this->dropColumn('{{%customer}}','is_wechat_pay');
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m171204_065241_alter_customer cannot be reverted.\n";

        return false;
    }
    */
}
